<?php
require_once('../../includes/user.php');
$user=new User();
if($_POST['block']=='notok')
{
	$user->query("update user_profile set block=0 where id='$_POST[p_id]'");
}
else if($_POST['block']=='ok')
{
	$user->query("update user_profile set block=1 where id='$_POST[p_id]'");

}
?>